import { createApp } from 'vue'
import App from './App.vue'

import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'

//引入全局reset.scss
import '@/styles/index.scss'

//svg插件需要配置代码
import 'virtual:svg-icons-register';
import gloalComponent from '@/components'

//引入路由
import router from './router'

//引入路由守卫
import './permission'

//引入pinia
import pinia from './store'

console.log(import.meta.env)

const app = createApp(App)

app.use(ElementPlus)
app.use(ElementPlus, {
  locale: zhCn,
})
app.use(gloalComponent)
app.use(router)
app.use(pinia)
app.mount('#app')
